package com.kyd.push.order.controller;

import com.kyd.push.common.result.Ret;
import com.kyd.push.model.OrderForm;
import com.kyd.push.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/create")
    public Ret create(){

        orderService.createOrder(new OrderForm());
        return Ret.ok();
    }
}
